package com.dd.cloud.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author admin
 */
@SpringBootApplication
@MapperScan("com.dd.cloud.auth.mapper")
@MapperScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.dao.*", "com.dd.cloud.auth.mapper"})
@ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*",
        "com.dd.cloud.auth",
        "com.dd.cloud.common.config.common",
        "com.dd.cloud.common.config.servlet",
        "com.dd.cloud.common.config.cookie",
        "com.dd.cloud.common.config.redis"
})
//启动缓存
@EnableCaching
//nacos配置实时刷新
@RefreshScope
public class DdAuthorityServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DdAuthorityServiceApplication.class, args);
    }

}
